Repository navigation
Plasma and frontier laser guns - #540
Merged
Merged
Conversation
…puff, hiss-by and far sound
…types, red-zone Old Furnace roll, laser empty sprites
… in the resale test, update the wiki page
… body The splash states are six 0.1 s frames, but the splash lived 0.5 s, so the last frame (the cooling pane glow on glass, the last droplets on walls) never showed. Splashes now live 0.6 s. The flesh splash's steam came from the shared steam pool, whose holder draws above every mob. A bolt hitting the far side of a body put its steam over the chest while the splash itself was hidden. The steam now uses its own pool whose holders take the splash's layer.
tg's range-out hop leaves a projectile a tile less twice its overshoot short of where it ran out, so the gutter-out appeared up to a tile behind the bolt's last drawn spot. The gutter now adds that shortfall back along the bolt's path. The wisp named a state the copied projectile icon does not have, so it never drew, and the switch to it flashed the bolt's emissive core upright for a frame. The core, light, icon and transform now change together in one update, the wisp uses the effects icon, and it fades in its own frames instead of being faded a second time.
Hits no longer add fire stacks. Bolts carry higher wound bonuses so they leave real burn wounds, melt a hurt arm or leg (the rifle also one with a critical burn, never a healthy limb in one hit), and break structures and doors faster. The pistol bolt goes from 30 to 32 damage to keep its time to kill without the fire.
The limb comes off at once through tg's burn loss; a copy of the limb as it was drawn glows, sags, drops its lower half and goes, then tg's ash shows under it. Blocking poses only.
Ordinary hits alternate between a molten splatter and a flash with a ring. A hit that kills or gives the limb a critical burn burns through instead, with an exit spray out the far side and a cooling entry wound. Globs that stick to the body move and fall with it. Rifle and pistol bursts are drawn separately, the pistol at 0.6x. A held shield that blocks a bolt throws the metal splash on the shooter's side.
…set the shooter on fire
The copy flew a fixed path on the client's clock and was swapped for the bolt by a server timer. When the server ran slow the copy got up to a tile and a half ahead, so on short shots it sat on the target and the bolt then showed further back and flew in again. The copy now repeats each movement step the bolt makes, with the same timing, closing sideways onto the bolt's line over the first tile, and hands over once the bolt has covered that tile.
A finished cog fades for half a second, then its Destroy() removed every managed vis overlay on the user, including the cog of a do_after that had started in the meantime. Picking plasma slag one bead after another showed no cog for the second pick, so the slag seemed to come out seconds after the work ended.
Furnace bolt 30 burn, armour piercing 15; Cinder bolt 22 burn. The Hornet sprays its own 10-burn beam every 0.15 s with spread 20 and 40 shots a cell. The Furnace now cools about 3 heat a second in room air and 1 in vacuum, so a cartridge overheats it; glow steps move to 30/55/80, the first two read brighter, the coil ticks at the last one, and a boil sheds more heat. Tests, ratings and the wiki follow.
tg ends a hitscan tracer at the clicked pixel as if the body stood upright, or half a tile past where the beam entered the tile. A body lying down is drawn on its side in the low half of its tile, so automatic lasers like the Hornet drew every beam ending on the floor next to it. Only the tracer's end moves; hits are unchanged.
The Furnace now cools faster between shots: a careful pace never overheats a cartridge, flat out overheats around the 8th shot. An overheat locks the gun for ten seconds instead of boiling plasma and damaging it. The V key starts a vent with a sweeping bar; gold clears the heat and halves it for a few shots, amber vents most of it, letting it run out vents it a moment slower, and the dark ends spit plasma like the old vent. Furnace pirates run the same heat and let their vents run out.
The bar is now 21 px wide and 5 px tall (one pixel per unit), with a 3 px marker, down from about 78 px. The marker reach and the strip offset are redrawn to match, so it stays centred over the body and over the zone the tap is judged in.
PLASMA_NPC_GUNS (0) turns off the yellow- and red-zone pirate Cinder and Furnace loadouts and the red-zone Director Prime and Chief Auditor Furnace. Bosses keep their stock weapon, and the Old Furnace stays in red-zone boss loot. The code stays for when the define goes back to 1, and the pirate tests check whichever way it is set. The wiki no longer says pirates fire them.
Every melted limb now leaves its own slag where its pool lay, up to three on a tile; a fourth replaces the tile's oldest. Before, a second melt on a tile found the first slag and its pool simply vanished. The slag no longer merges like other floor messes, cleanbots now go after it, and the cooling pool's glow fades out with its light so the slag takes over without a jump in the dark.
Jackriip
marked this pull request as ready for review
November 16, 2026 18:08
With two or more limbs lost, the sleeve masks after the first rode on the first mask as plain overlays. Those are not part of its render target, so they were drawn on the body as white limbs. Each lost limb now gets its own mask appearance, render target and filter.
An overheat in a player's hand brings the vent bar up at once: gold ends the lockout with the coils cold, amber vents most of the heat and cuts the lockout to 2 s, a miss or a fumble leaves the whole lockout (the fumble spits gas). The bar is now 38 px inside (fail 12, amber 5, gold 4, amber 5, fail 12) and the marker crosses it in 1 s.
…d while it's locked from an overheat
…ng the bar does nothing
…nd cover the Kestrel and a pistol directly
The Cinder, Furnace and Old Furnace are plain plasma guns again: no barrel heat, cooling, overheat lockout, vent bar, vent keybinding or vented gas, and no "too hot" reload refusal. Pirate plasma gunners lose their heat and vent handling and only fire and change cartridges. The coil glow states now show how much plasma is left: brightest on a full cartridge, dimmer as it runs down, dark when empty or unloaded, on the world and in-hand sprites. The Furnace is back to 12 shots a cartridge. The Old Furnace keeps its spread of 0.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds two plasma guns, two frontier laser guns, single-use plasma cartridges and plasma burn wounds.
Guns
How plasma works
PLASMA_NPC_GUNSis 0). The human-NPC pirate loadouts for them are in the code, switched off.Effects
Fixes in this PR
Media
Recorded in a real client at real speed.
Bolts and the barrel pinch (Furnace, then Cinder, in all four facings):


Wall and glass hits in the dark:

Hits on people (two ordinary hits, then two burn-throughs):

Plasma burns (a pistol hit, then rifle hits on the same chest; the slag picked out with a hemostat):


Melting limbs (arm with gloves and a held crowbar, leg, lying, walking off mid-melt, a robot arm):





Shield block:

Cartridge in hand (full, then spent):

Assets
The gun and cartridge sprites (recoloured to hot purple) and the plasma, RCW and laser pistol sounds are from Mojave Sun (CC BY-NC-SA 3.0). The bolt, effect, burst, melt and plasma wound sprites, the coil glow states, and the plasma hit, burn-through and melt sounds, are new. Each file's source and licence is listed in
voidcrew/modules/plasma_weapons/icons/attributions.txtandsound/attributions.txt. There's a new player wiki page atwiki/content/plasma-and-laser-guns.md.